<div data-role="content" data-scroll="y" height="80%">
<div data-iscroll="scroller">
<?php if(isset($area)) :?>
<p>Choose from places where others meet:</p>
<?php foreach($area as $a):?>
<li data-icon="false"><a
	href="<?=site_url('hello_controller/to_fill_form');?>?areaid=<?=$a->areaid?>&areaname=<?=$a->areaname?>">
			<?=$a->areaname?>
</a></li>
<?php endforeach;endif;?>

<br>
<?php echo validation_errors('<p class="error">'); ?>
<?php echo form_open("hello_controller/create_new_area");?>
<label for="area">or create a new area:</label>
<input type="text" name="areaname" id="areaname" data-inset="true">

<input type="hidden" name="lat" value=<?=$lat?> />
<input type="hidden" name="longi" value=<?=$longi?> />

<input type=submit value="Create New Area" name="submit" data-inset="true">

<?php echo form_close();?>
</div>
</div>
